package com.ruoyi.system.service.impl;

import com.ruoyi.common.core.domain.entity.Keeper;
import com.ruoyi.common.core.domain.entity.Program;
import com.ruoyi.system.mapper.KeeperMapper;
import com.ruoyi.system.mapper.ProgramMapper;
import com.ruoyi.system.service.KeepService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class KeepServiceImpl implements KeepService {
    @Autowired
    KeeperMapper keeperMapper;
    @Override
    public List<Keeper> selectList(Keeper keeper) {
        return null;
    }

    @Override
    public Keeper selectById(Long id) {
        return   keeperMapper.selectById(id);
    }

    @Override
    public List<Keeper> selectByIds(List<Long> ids) {
        return   keeperMapper.selectByIds(ids);



    }

    @Override
    public Boolean create(Keeper keeper) {
        return null;
    }

    @Override
    public Boolean update(Keeper keeper) {
        return null;
    }

    @Override
    public Boolean deleteById(Long id) {
        return keeperMapper.deleteById(id) == 1;
    }

    @Override
    public Boolean updateKeep(Keeper keeper) {
        return keeperMapper.update(keeper) == 1;
    }

    @Override
    public Boolean createKeep(Keeper keeper) {
        return keeperMapper.insert(keeper) == 1;
    }

    @Override
    public List<Keeper> selectAll(Keeper keeper) {
        return keeperMapper.selectAll(keeper);
    }

    @Override
    public List<Keeper> selectKeepList(Keeper keeper) {
        return keeperMapper.selectList(keeper);
    }
}
